//
//  GameCollectionCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/5.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit
import SDWebImage

class GameCollectionCell: BaseCollectionCell {
    
    @IBOutlet weak var indicatorView: UIActivityIndicatorView!
    
    
    @IBOutlet weak var imageView: UIImageView!
    
    
    var urlStr = "-999"{
    
        didSet{
            
        indicatorView.startAnimating()

        
        let url = URL(string: urlStr)
        
            if url != nil {
                
                imageView.sd_setImage(with: url!, placeholderImage: UIImage.defaulImage(), options: []) { (image, _, _, _) in
                    self.indicatorView.stopAnimating()
                    
                }
 
            }
        
        }
    
    }
    

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
